﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserEdit.aspx.cs" Inherits="School.SystemManage.UserManage.UserEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="../../css/right.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="container">
        <div class="title_bg">
            <div class="floatLeft title_text_div">用户管理 > <%=title %></div>
            <div class="clear"></div>
        </div>
        <div class="addUser">
            <ul class="floatMiddle">
                <li>
                    <div class="floatLeft" style="padding-left:18px"><span class="red">*</span>用户名：</div>
                    <div class="floatLeft"><asp:TextBox ID="txbUserName" runat="server"></asp:TextBox></div>
                    <div class="floatLeft">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="必填" ControlToValidate="txbUserName"></asp:RequiredFieldValidator></div>
                    <div class="clear"></div>
                </li>
                <li>
                    <div class="floatLeft" style="padding-left:30px"><span class="red">*</span>密码：</div> 
                    <div class="floatLeft"><asp:TextBox ID="txbPwd" runat="server" TextMode="Password"></asp:TextBox></div>
                    <div class="floatLeft">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="必填" ControlToValidate="txbPwd"></asp:RequiredFieldValidator></div>
                    <div class="clear"></div>
                </li>
                <li>    
                    <div class="floatLeft" style="padding-left:6px"><span class="red">*</span>确认密码：</div>
                    <div class="floatLeft"><asp:TextBox ID="txbConfim" runat="server" TextMode="Password"></asp:TextBox></div>
                    <div class="floatLeft">
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="密码不一致" ControlToCompare="txbPwd" ControlToValidate="txbConfim"></asp:CompareValidator></div>
                    <div class="clear"></div>
                </li>
                <li>
                    <div class="floatLeft" style="padding-left:6px"><span class="red">*</span>真实姓名：</div>
                    <div class="floatLeft"><asp:TextBox ID="txbRealName" runat="server"></asp:TextBox></div>
                    <div class="floatLeft">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="必填" ControlToValidate="txbRealName"></asp:RequiredFieldValidator></div>
                    <div class="clear"></div>
                </li>
                <li>
                    <div class="floatLeft" style="padding-left:30px"><span class="red">*</span>角色：</div>
                     <div class="floatLeft">
                         <asp:DropDownList ID="ddl_Role" runat="server">
                         </asp:DropDownList>
                     </div>
                </li>
                <li>
                    <div class="floatLeft" style="margin-top:5px; padding-left:12px;">当前状态：</div>                  
                    <div class="floatLeft">
                        <asp:RadioButtonList ID="rblEnabled" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Value="1" Selected="True">可用</asp:ListItem>
                            <asp:ListItem Value="0">禁用</asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                    <div class="clear"></div>
                </li>
                <li>
                    <div class="floatLeft" style="margin-top:5px;">是否管理员：</div>
                    <div class="floatLeft">
                        <asp:RadioButtonList ID="rblIsAdmin" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Value="0" Selected="True">否</asp:ListItem>
                            <asp:ListItem Value="1">是</asp:ListItem>                      
                        </asp:RadioButtonList>
                    </div>
                    <div class="clear"></div>
                </li>
                <li style="text-align:center">
                    <asp:Button ID="tbnSubmit" runat="server" Text="提交" onclick="tbnSubmit_Click" />
                </li>
                <li>
                    <asp:Label ID="msg" runat="server" Text="" CssClass="red"></asp:Label></li>
            </ul>
        </div>
    </div>
    </form>
</body>
</html>
